﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Good_Manager.aspx.cs" Inherits="shop_Good_Manager" %>

<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>
<%@ Register Assembly="Infragistics2.WebUI.Misc.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.Misc" TagPrefix="igmisc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
    <title>网店管理--商品上架</title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
    //获取选中行ID
    function UWGGood_AfterRowActivateHandler(gridName, rowId)
    {
         //选择行当前行
         var goodId = igtbl_getRowById(rowId).getCellFromKey("GoodID").getValue();
         document.getElementById("hGoodID").value = goodId;                                    
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <br />
    <center>
        <table style="width: 96%; vertical-align: middle; background-color: #DAE7F8;" border="0px"
        cellpadding="0px" cellspacing="1px">
        <tr>
            <td style="height: 28px">
                <igmisc:WebPanel ID="WebPanel1" runat="server" BackColor="#DAE7F8" BorderColor="#106DB0"
                    BorderWidth="1px" StyleSetName="" Width="100%" BorderStyle="Solid" Expanded="False">
                    <Header Text="商品管理">
                        <ExpandedAppearance>
                            <Styles BackColor="#DAE7F8" Font-Bold="True" Height="26px">
                            </Styles>
                        </ExpandedAppearance>
                    </Header>
                </igmisc:WebPanel>
            </td>
        </tr>
        <tr>
            <td>
                <igtbl:UltraWebGrid ID="UWGGood" runat="server" Height="350px" Width="100%" OnUpdateCell="UWGGood_UpdateCell"
                    OnPageIndexChanged="UWGGood_PageIndexChanged">
                    <Bands>
                        <igtbl:UltraGridBand AllowUpdate="No">
                            <SelectedRowStyle BackColor="#99FF66" BorderColor="#99FF33" BorderStyle="Solid" BorderWidth="1px" />
                            <Columns>
                                <igtbl:UltraGridColumn BaseColumnName="GoodNo" HeaderText="货号" Key="GoodNo">
                                    <Header Caption="货号">
                                    </Header>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="GoodName_CN" HeaderText="名称" Key="GoodName_CN">
                                    <Header Caption="名称">
                                        <RowLayoutColumnInfo OriginX="1" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="1" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="GoodNorm" HeaderText="规格" Key="GoodNorm">
                                    <Header Caption="规格">
                                        <RowLayoutColumnInfo OriginX="2" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="2" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="Color" HeaderText="色号" Key="GoodColor" Hidden="true">
                                    <Header Caption="色号">
                                        <RowLayoutColumnInfo OriginX="3" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="3" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="Price_Orig" HeaderText="原价" Key="Price_Orig">
                                    <Header Caption="原价">
                                        <RowLayoutColumnInfo OriginX="4" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="4" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="Price_Vip" HeaderText="VIP价" Key="Price_Vip">
                                    <Header Caption="VIP价">
                                        <RowLayoutColumnInfo OriginX="5" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="5" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn AllowUpdate="Yes" BaseColumnName="isOnSale" HeaderText="上架"
                                    Key="isOnSale" Type="CheckBox">
                                    <Header Caption="上架">
                                        <RowLayoutColumnInfo OriginX="6" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="6" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn AllowUpdate="Yes" BaseColumnName="isNew" HeaderText="新品上市"
                                    Key="isNew" Type="CheckBox">
                                    <Header Caption="新品上市">
                                        <RowLayoutColumnInfo OriginX="7" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="7" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn AllowUpdate="Yes" BaseColumnName="IsCommend" HeaderText="热销抢购"
                                    Key="IsCommend" Type="CheckBox">
                                    <Header Caption="热销抢购">
                                        <RowLayoutColumnInfo OriginX="8" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="8" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn AllowUpdate="Yes" BaseColumnName="isHot" HeaderText="特价商品"
                                    Key="isHot" Type="CheckBox">
                                    <Header Caption="特价商品">
                                        <RowLayoutColumnInfo OriginX="9" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="9" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn AllowUpdate="Yes" BaseColumnName="isFavorable" HeaderText="各地特产"
                                    Key="isFavorable" Type="CheckBox">
                                    <Header Caption="各地特产">
                                        <RowLayoutColumnInfo OriginX="10" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="10" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn AllowUpdate="No" BaseColumnName="Amount" HeaderText="库存" Key="Amount">
                                    <Header Caption="库存">
                                        <RowLayoutColumnInfo OriginX="11" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="11" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="ShopID" HeaderText="商店编号" Hidden="True" Key="ShopID">
                                    <Header Caption="商店编号">
                                        <RowLayoutColumnInfo OriginX="12" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="12" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="norms" HeaderText="规格数组" Hidden="True" Key="norms">
                                    <Header Caption="规格数组">
                                        <RowLayoutColumnInfo OriginX="13" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="13" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="colors" HeaderText="颜色数组" Hidden="True" Key="colors">
                                    <Header Caption="颜色数组">
                                        <RowLayoutColumnInfo OriginX="14" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="14" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="ID" HeaderText="编号" Hidden="True" Key="ID">
                                    <Header Caption="编号">
                                        <RowLayoutColumnInfo OriginX="15" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="15" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                                <igtbl:UltraGridColumn BaseColumnName="GoodID" HeaderText="商品编号" Hidden="True" Key="GoodID">
                                    <Header Caption="商品编号">
                                        <RowLayoutColumnInfo OriginX="16" />
                                    </Header>
                                    <Footer>
                                        <RowLayoutColumnInfo OriginX="16" />
                                    </Footer>
                                </igtbl:UltraGridColumn>
                            </Columns>
                            <AddNewRow Visible="NotSet" View="NotSet">
                            </AddNewRow>
                        </igtbl:UltraGridBand>
                    </Bands>
                    <DisplayLayout Version="4.00" SelectTypeRowDefault="Extended" Name="UWGGood" AllowSortingDefault="OnClient"
                        AllowDeleteDefault="Yes" AllowColSizingDefault="Free" RowHeightDefault="20px"
                        TableLayout="Fixed" ViewType="Hierarchical" AllowColumnMovingDefault="OnServer"
                        HeaderClickActionDefault="SortMulti" StationaryMargins="Header" BorderCollapseDefault="Separate"
                        StationaryMarginsOutlookGroupBy="True" AutoGenerateColumns="False" CellClickActionDefault="RowSelect"
                        IndentationTypeDefault="Flat" NoDataMessage="没有查询到数据！" UseFixedHeaders="True">
                        <FrameStyle BackColor="Window" BorderColor="" BorderWidth="1px" Font-Names="Microsoft Sans Serif"
                            Font-Size="8.25pt" Height="350px" Width="100%">
                        </FrameStyle>
                        <Pager MinimumPagesForDisplay="2" AllowPaging="True" NextText="下页" PageSize="20"
                            PrevText="上页" StyleMode="ComboBox" Pattern="&lt;table width=100%&gt;&lt;tr&gt;&lt;td align=left&gt;页码：[currentpageindex]/[pagecount] 每页:[pagesize]条&lt;/td&gt;&lt;td align=right&gt;[default]&lt;td&gt;&lt;/tr&gt;&lt;/table&gt;">
                            <Style BackColor="#FFFF99">
                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" > </BorderDetails ></Style>
                        </Pager>
                        <EditCellStyleDefault BorderWidth="0px" BorderStyle="None">
                        </EditCellStyleDefault>
                        <FooterStyleDefault BackColor="LightGray" BorderWidth="1px" BorderStyle="Solid">
                            <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                            </BorderDetails>
                        </FooterStyleDefault>
                        <HeaderStyleDefault HorizontalAlign="Center" BackColor="" BorderStyle="Solid" Height="26px"
                            VerticalAlign="Middle">
                            <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                            </BorderDetails>
                        </HeaderStyleDefault>
                        <RowSelectorStyleDefault Width="10px">
                        </RowSelectorStyleDefault>
                        <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderWidth="1px" BorderStyle="Solid"
                            Font-Names="Microsoft Sans Serif" Font-Size="8.25pt">
                            <Padding Left="3px"></Padding>
                            <BorderDetails ColorLeft="Window" ColorTop="Window"></BorderDetails>
                        </RowStyleDefault>
                        <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                        </GroupByRowStyleDefault>
                        <SelectedRowStyleDefault BackColor="#E4FFCA" BorderColor="#99FF99" BorderStyle="Solid"
                            BorderWidth="1px" Cursor="Hand">
                        </SelectedRowStyleDefault>
                        <GroupByBox Hidden="True" Prompt="">
                            <Style BackColor="ActiveBorder" BorderColor="Window">
                                </Style>
                        </GroupByBox>
                        <AddNewBox>
                            <Style BackColor="Window" BorderColor="InactiveCaption" BorderWidth="1px" BorderStyle="Solid">
                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" > </BorderDetails ></Style>
                        </AddNewBox>
                        <ActivationObject BorderColor="" BorderWidth="">
                        </ActivationObject>
                        <FilterOptionsDefault>
                            <FilterDropDownStyle CustomRules="overflow:auto;" BackColor="White" BorderColor="Silver"
                                BorderWidth="1px" BorderStyle="Solid" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                Font-Size="11px" Height="300px" Width="200px">
                                <Padding Left="2px"></Padding>
                            </FilterDropDownStyle>
                            <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                            </FilterHighlightRowStyle>
                            <FilterOperandDropDownStyle CustomRules="overflow:auto;" BackColor="White" BorderColor="Silver"
                                BorderWidth="1px" BorderStyle="Solid" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                Font-Size="11px">
                                <Padding Left="2px"></Padding>
                            </FilterOperandDropDownStyle>
                        </FilterOptionsDefault>
                        <ClientSideEvents AfterRowActivateHandler="UWGGood_AfterRowActivateHandler" />
                    </DisplayLayout>
                </igtbl:UltraWebGrid>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;&nbsp;
                <asp:Button ID="btnDeteil" runat="server" Text="基本信息" OnClick="btnDeteil_Click" Visible="false" />
                &nbsp;&nbsp;
                <asp:Button ID="btnPicture" runat="server" OnClick="btnPicture_Click" Visible="false"
                    Text="图片预览" />
            </td>
        </tr>
    </table>
        <asp:TextBox ID="hSiteID" runat="server" Visible="false"></asp:TextBox>
        <asp:HiddenField ID="hGoodID" runat="server" />
    </center>
    </form>
</body>
</html>
